<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>

<div id="app">
    <ol>
        <ii v-for="g in girls"
            v-bind:todo="g"
        ></ii>
    </ol>



</div>

</body>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        //定义组件'
        Vue.component('ii',{
            props:['todo'],
            template:'<li>{{todo}}</li>'
        })

        var  app = new Vue({
            el:'#app',
            data:{
                girls:[
                    {name:'lbb',age:18},
                    {name:'fbb',age:28},
                    {name:'wbb',age:38}
                ]
            }

        })
    </script>
</html>